﻿using DirectSell.Model.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Direct.IDAL.User.Jurisdiction
{
    /// <summary>
    /// 修改用户信息仓储接口
    /// </summary>
    public interface IModifyInfoRespository :IAbsRepository
    {
        /// <summary>
        /// 查询用户信息
        /// </summary>
        /// <param name="UserCode">会员编号</param>
        /// <returns></returns>
        Task<UserInforMationDetails> GetInfo(string UserCode);

        /// <summary>
        /// 修改用户信息
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        bool ModifyInfo(UserInforMationDetails info);
        /// <summary>
        /// 判断二级密码
        /// </summary>
        /// <param name="UserCode">会员编号</param>
        /// <param name="SecondPassword">二级密码</param>
        /// <returns></returns>

        Task<bool> CheckSecondPassword(string UserCode, string SecondPassword);

    }
}
